package sctu.edu.java.year2016.team01.zhuming.day20160530.chapter8_3;

/**尝试创建一个父类和一个子类，分别创建构造方法，然后向父类个子类中添加成员变量和成员方法，
 并总结构建子类对象的顺序。
 * Created by Administrator on 2016/6/1.
 */
public class Person {
    String name;
    double  age;

    public Person(String name,double age){
        this.name=name;
        this.age=age;
    }

    public Person() {

    }

    public void eat(){

        System.out.println("person eat three times a day!");
    }


}
